#!/bin/bash

export JAVA_HOME=/usr/local/jdk1.8.0_231
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
cd /usr/local/orders
cp orders.jar orders9096.jar
cp orders.jar orders9197.jar
cp orders.jar orders9198.jar
cp orders.jar orders9199.jar
nohup java -jar orders9096.jar --spring.profiles.active=pro --server.port=9096 --xxl.job.executor.port=9086 >/dev/null 2>&1 &
nohup java -jar orders9197.jar --spring.profiles.active=pro --server.port=9197 --xxl.job.executor.port=9187 >/dev/null 2>&1 &
nohup java -jar orders9198.jar --spring.profiles.active=pro --server.port=9198 --xxl.job.executor.port=9188 >/dev/null 2>&1 &
nohup java -jar orders9199.jar --spring.profiles.active=pro --server.port=9199 --xxl.job.executor.port=9189 >/dev/null 2>&1 &

